﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutomationCommand
{
    public class wb_elmt_cod : BasiCommand
    {
        [JsonProperty("xpath_cod")]
        public string XPathCode { get; set; }

        [JsonProperty("xpath_ipt")]
        public string XPathInput { get; set; }

        [JsonProperty("codapi")]
        public string CodeAPI { get; set; }

        public wb_elmt_cod()
        {
            FunctionType = "wb_elmt_cod";
            OtherName = "输入验证码";
            SuccessJump = -1;
            FailureJump = -1;
            XPathCode = "";
            XPathInput = "";
            CodeAPI = "";
        }

        public bool Execute()
        {
            // 在这里编写执行命令的逻辑
            // 返回执行结果
            return true; // 假设此处始终成功
        }
    }
}
